#include "lidarline.h"
#include "auxfunctions.h"
#include <stdlib.h>
#include <stdio.h>

struct FileInfo
{
	FILE *fp; 
	int datasetCount; //how many data are there?
	int nowDatasetIndex; //fp pointing to which dataset?
	DodoTimeInt fileStartTime;
	DodoTimeInt fileEndTime;

};

bool OpenFile(FileInfo &file, char *filename);
bool CloseFile(FileInfo &file);

bool ReadToLine(LidarLine &line, FileInfo &file, int index=-1);
